package com.ysy.persimmons.common.exception;

import lombok.Getter;
import lombok.Setter;



@Setter
@Getter
public class ServiceException extends RuntimeException {
    // 异常码
    private String errorCode;
    // 错误信息
    private String errorMessage;

    public ServiceException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }

}
